# -*- coding: utf-8 -*-

# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html

import scrapy


class SteamDataCollectItem(scrapy.Item):
    # define the fields for your item here like:
    # name = scrapy.Field()

    url = scrapy.Field()
    class_title = scrapy.Field(default=u'', help_text=u'课堂标题规则')
    class_desc = scrapy.Field(default=u'', help_text=u'课堂简介规则')
    class_img = scrapy.Field(default=u'', help_text=u'课堂简介图片规则')
    challenge_title = scrapy.Field(default=u'', help_text=u'挑战名字')
    challenge_desc = scrapy.Field(default=u'', help_text=u'挑战简介')

    objective = scrapy.Field(default=u'', help_text=u'目标的规则')
    background_information = scrapy.Field(default=u'', help_text=u'背景信息的规则')

    science_skills = scrapy.Field(default=u'', help_text=u'科学类')
    technology_skills = scrapy.Field(default=u'', help_text=u'技术类')
    engineering_skills = scrapy.Field(default=u'', help_text=u'工程类')
    arts_skills = scrapy.Field(default=u'', help_text=u'艺术类')
    math_skills = scrapy.Field(default=u'', help_text=u'数学类')

    directions = scrapy.Field(default=u'', help_text=u'挑战方向')
    materials = scrapy.Field(default=u'', help_text=u'所需材料')
    wrap_up = scrapy.Field(default=u'', help_text=u'总结')

    extended_picture = scrapy.Field(default=u'', help_text=u'扩展图片')
    achievements_picture = scrapy.Field(default=u'', help_text=u'成果样例图片')



class imageitem(scrapy.Item):
    image_urls=scrapy.Field()   #要下载图片的url路径   值的类型是list
    images=scrapy.Field()    #下载之后的图片信息




class BrainpopSteamDataCollectItem(scrapy.Item):
    # define the fields for your item here like:
    # name = scrapy.Field()

    url = scrapy.Field()
    class_title = scrapy.Field(default=u'', help_text=u'课堂标题规则')
    class_desc = scrapy.Field(default=u'', help_text=u'课堂简介规则')
    class_img = scrapy.Field(default=u'', help_text=u'课堂简介图片规则')
    challenge_title = scrapy.Field(default=u'', help_text=u'挑战名字')
    challenge_desc = scrapy.Field(default=u'', help_text=u'挑战简介')

    objective = scrapy.Field(default=u'', help_text=u'目标的规则')
    background_information = scrapy.Field(default=u'', help_text=u'背景信息的规则')

    science_skills = scrapy.Field(default=u'', help_text=u'科学类')
    technology_skills = scrapy.Field(default=u'', help_text=u'技术类')
    engineering_skills = scrapy.Field(default=u'', help_text=u'工程类')
    arts_skills = scrapy.Field(default=u'', help_text=u'艺术类')
    math_skills = scrapy.Field(default=u'', help_text=u'数学类')

    directions = scrapy.Field(default=u'', help_text=u'挑战方向')
    materials = scrapy.Field(default=u'', help_text=u'所需材料')
    wrap_up = scrapy.Field(default=u'', help_text=u'总结')

    extended_content = scrapy.Field(default=u'', help_text=u'扩展说明')
    extended_picture = scrapy.Field(default=u'', help_text=u'扩展图片')
    achievements_picture = scrapy.Field(default=u'', help_text=u'成果样例图片')


class NasaSteamDataCollectItem(scrapy.Item):
    # define the fields for your item here like:
    # name = scrapy.Field()

    url = scrapy.Field()
    class_title = scrapy.Field(default=u'', help_text=u'课堂标题规则')
    class_desc = scrapy.Field(default=u'', help_text=u'课堂简介规则')
    class_img = scrapy.Field(default=u'', help_text=u'课堂简介图片规则')
    challenge_title = scrapy.Field(default=u'', help_text=u'挑战名字')
    challenge_desc = scrapy.Field(default=u'', help_text=u'挑战简介')

    objective = scrapy.Field(default=u'', help_text=u'目标的规则')
    background_information = scrapy.Field(default=u'', help_text=u'背景信息的规则')

    science_skills = scrapy.Field(default=u'', help_text=u'科学类')
    technology_skills = scrapy.Field(default=u'', help_text=u'技术类')
    engineering_skills = scrapy.Field(default=u'', help_text=u'工程类')
    arts_skills = scrapy.Field(default=u'', help_text=u'艺术类')
    math_skills = scrapy.Field(default=u'', help_text=u'数学类')

    directions = scrapy.Field(default=u'', help_text=u'挑战方向')
    materials = scrapy.Field(default=u'', help_text=u'所需材料')
    wrap_up = scrapy.Field(default=u'', help_text=u'总结')

    extended_content = scrapy.Field(default=u'', help_text=u'扩展说明')
    extended_picture = scrapy.Field(default=u'', help_text=u'扩展图片')
    achievements_picture = scrapy.Field(default=u'', help_text=u'成果样例图片')